package Project;

import static org.junit.Assert.*;

import org.junit.Test;
import Hulppakket.*;
public class CameraTest {

	@Test
	public void test() {
		Point3f eye = new Point3f(0,0,0);
		Vector3f gaze = new Vector3f(1,0,0);
		Vector3f up = new Vector3f(0,0,1);
		Camera c = new Camera(eye,gaze,up);
		Ray r = c.generateRay(249, 249, 500, 500);
		System.out.println(r.getOrigin().toString());
		System.out.println(r.getDirection().toString());
		r = c.generateRay(1, 1, 500, 500);
		System.out.println(r.getOrigin().toString());
		System.out.println(r.getDirection().toString());

		
	}

}
